You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: BED-10669 make retry-budget tests independent of local configuration - #113
The retry-budget regression test expected seven HTTP attempts while CI uses DLT’s default overall limit of five. A higher local retry setting masked the failure.
Set the limit explicitly in the test and cover both stopping at five attempts and succeeding on attempt seven. Production retry behavior is unchanged.
Validation: 668 tests passed with RUNTIME__REQUEST_MAX_ATTEMPTS=5; Ruff and git diff --check.
Summary by CodeRabbit
Tests
Expanded coverage of request retry limits, including cases that exhaust the configured attempts and eventually succeed.
The test checks that five attempts end with HTTP 503 and seven attempts reach success. Both cases assert that the send count matches the configured limit.
SpecterOps/openhound-github#95: Changes the shared retry budget for transient failures, which affects the attempt counts covered by this rate-limit test.
Suggested reviewers: eladshamir
Merge Risk: Minimal · up to b352f
This is a test-only change that makes the retry-budget regression test independent of local retry configuration. Production behavior is unchanged, and no merge-blocking risk is evident.
Security architecture risk: Minimal · up to b352f
The change makes retry-test configuration explicit and checks two expected outcomes. Production retry behavior and external exposure are unchanged.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the fix (retry-budget tests made independent of local configuration), which matches the changeset. The test now sets the overall attempt limit explicitly (5 and 7) instead of relying o…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the fix (retry-budget tests made independent of local configuration), which matches the changeset. The test now sets the overall attempt limit explicitly (5 and 7) instead of relying on a local RUNTIME__REQUEST_MAX_ATTEMPTS value. The 'fix:' prefix and ticket ID are acceptable, and the title is specific enough for a reviewer scanning history.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
A rabbit counts each retry with care, Four rate limits hop through the air. Five sends end with a 503, Seven reach success, as tests agree. The send count matches every run, Then off I hop beneath the sun.
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: c85bc85b-23ba-4760-a1cd-48b301c00ead
Commits
Reviewing files that changed from the base of the PR and between ee3ec55 and b352fb6.
Files selected for processing: 1
tests/test_github_rest_client.py
Included review availability: This review used your included allowance. 9 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 10 reviews per hour.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The retry-budget regression test expected seven HTTP attempts while CI uses DLT’s default overall limit of five. A higher local retry setting masked the failure.
Set the limit explicitly in the test and cover both stopping at five attempts and succeeding on attempt seven. Production retry behavior is unchanged.
Validation: 668 tests passed with RUNTIME__REQUEST_MAX_ATTEMPTS=5; Ruff and git diff --check.
Summary by CodeRabbit